<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>


<div class="maindivForm">

	<sf:form modelAttribute="registerObj">
		<div class="contentdiv">
			<h3>Select company page</h3>
			<sf:select path="companyId">
				<sf:option value="">Please select</sf:option>
				<sf:options items="${companyList}" itemLabel="name" itemValue="id" />
			</sf:select>
			<sf:errors path="companyId" cssClass="error" />
			<br/>
			<sf:input path="companyName" size="30"/>
		</div>
		<br />

		<div class="butdiv">

			<input type="submit" name="_eventId_back" value="Back"> <input
				type="submit" name="_eventId_next" value="Next"> <input
				type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}" />
		</div>
	</sf:form>
<script type="text/javascript">
$("#companyName").autocomplete({
	serviceUrl: "companyautocomplete.rw"
	,minChars: 3
	,autoSelectFirst: true
	,deferRequestBy: 200
});
</script>
</div>
